<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    #app {
        width: 300px;
        height: 400px;
        background: pink;
    }

    .top {
        height: 30px;
        margin: 20px auto;
        text-align: center;
        font-size: 30px;
        font-weight: 700;
    }

    .Id input {
        border: none;
        outline: none;
        display: block;
        margin: 50px auto;
        height: 30px;
        border-radius: 20px;
    }

    .pwd input {
        border: none;
        outline: none;
        display: block;
        margin: 20px auto;
        height: 30px;
        border-radius: 20px;
    }

    button {
        margin-left: 100px;
        font-size: 30px;
        border-radius: 15px;
        width: 100px;
    }
</style>

<body>
    <!-- 登录页 -->
    <div id="app">
        <div class="top">{{name}}</div>
        <div class="Id">
            <input type="text" placeholder="请输入账号：" v-model="id">
        </div>
        <div class="pwd">
            <input type="password" placeholder="请输入密码：" v-model="pass">
        </div>
        <button @click="summit">{{bnt}}</button>
    </div>
</body>

</html>
<script src="vue.js"></script>
<script src="demo2.js"></script>